<?php
namespace app\common\model;
use think\Model;

class Notice extends Model
{
    protected $dateFormat = 'Y-m-d H:i:s';
    protected $type = [
        'time'  =>  'timestamp',
    ];

    protected $insert = ['time'];

    protected function setTimeAttr()
    {
        return time();
    }
}